/*
 * MPasswordField测试类
 * and open the template in the editor.
 */
package org.vacoor.ui.qq.password;

import javax.swing.*;
import javax.swing.plaf.basic.BasicPasswordFieldUI;
import javax.swing.plaf.basic.BasicTextFieldUI;
import java.awt.*;

/**
 *
 * @author Vacoor
 */
public class Demo extends JFrame {

	private static final long serialVersionUID = 1L;

	public Demo() {
        this.setTitle("MPasswordField'Test");
        this.add(new QQPasswordField());
        this.setVisible(true);
        this.pack();
        this.setDefaultCloseOperation(3);
        this.setLocationRelativeTo(null);
        this.setAlwaysOnTop(true);
    }

    public static void main(String[] args) {
//        new Demo();
        JFrame frame = new JFrame();
        JPasswordField pf = new JPasswordField();
        pf.setUI(new BasicTextFieldUI());
        frame.add(pf);
        frame.setDefaultCloseOperation(3);
        frame.setLocationRelativeTo(null);
        frame.pack();
        frame.setVisible(true);
    }
}
